export const nodeList = [
  {
    text: '开始',
    type: 'start',
    class: 'node-start'
  },
  {
    text: '矩形',
    type: 'rect',
    class: 'node-rect'
  },
  {
    type: 'user',
    text: '用户',
    class: 'node-user'
  },
  {
    type: 'push',
    text: '推送',
    class: 'node-push'
  },
  {
    type: 'download',
    text: '位置',
    class: 'node-download'
  },
  {
    type: 'end',
    text: '结束',
    class: 'node-end'
  }
]

export const BpmnNode = [
  {
    type: 'bpmn:startEvent',
    text: '开始',
    class: 'bpmn-start'
  },
  {
    type: 'bpmn:endEvent',
    text: '结束',
    class: 'bpmn-end'
  },
  {
    type: 'bpmn:exclusiveGateway',
    text: '网关',
    class: 'bpmn-exclusiveGateway'
  },
  {
    type: 'bpmn:userTask',
    text: '用户',
    class: 'bpmn-user'
  }
]

export function configDefaultDndPanel(lf) {
  return [
    {
      text: '选区',
      icon: '',
      callback: () => {
        lf.updateEditConfig({
          stopMoveGraph: true
        })
      }
    },
    {
      type: 'circle',
      text: '开始',
      icon: ''
    },
    {
      type: 'rect',
      text: '用户任务',
      icon: '',
      cls: 'important-node'
    },
    {
      type: 'rect',
      text: '系统任务',
      icon: '',
      cls: 'import_icon'
    },
    {
      type: 'diamond',
      text: '条件判断',
      icon: ''
    },
    {
      type: 'circle',
      text: '结束',
      icon: ''
    }
  ]
}
